;;; This is the only useful portion of the sram file, the rest is just used
;;; in-game as scratch RAM.

;;; Checksum routine:
;;;    if(sram[0x4fe]!=0x55) fail();
;;;    if(sram[0x4ff]!=0xaa) fail();
;;;    int sum=0;
;;;    for(int i=0; i<256; i++){
;;;        if(sum>255) sum=(sum+1)&0xff;
;;;        sum+=sram[0x400+i];
;;;        if(sum>255) sum=(sum+1)&0xff;
;;;        sum+=sram[0x500+i];
;;;        if(sum>255) sum=(sum+1)&0xff;
;;;        sum+=sram[0x600+i];
;;;        if(sum>255) sum=(sum+1)&0xff;
;;;        sum+=sram[0x700+i];
;;;    }
;;;    sum&=0xff;
;;;    if(sum==0xff) pass(); else fail();

;;; To create a valid checksum, set sram[0x4fd] to 0, do the above summing,
;;; then set sram[0x4fd] to ~sum.

;; General stuff
;        Ship        Airship     Bridge      Canal plug
;           X?          X           ??          ??
;              Y?          Y           ??          ??
;                                         ??          ??
0000400: 01 e3 f2 00 1f 98 a4 00 01 98 98 0e 00 66 a4 0e  .............f..
;        World Canoe Transport               Gold
;        X  Y              ??
0000410: 90 9b 01 00 01 00 80 00 00 00 00 00 21 42 0f 00  ............!B..
;        Items
0000420: 00 01 01 00 00 01 00 01 00 00 01 01 01 00 01 00  ................
0000430: 01 00 01 01 01 01 05 09 20 63 63 14 00 00 00 00  ........ cc.....
; Starting stats per class
0000440: 00 23 14 05 01 0a 05 0a 0a 35 0f 00 00 00 00 00  .#.......5......
0000450: 01 1e 05 0a 05 05 0f 02 05 3a 0f 00 00 00 00 00  .........:......
0000460: 02 21 05 05 05 14 05 02 05 35 0a 00 00 00 00 00  .!.......5......
0000470: 03 1e 0a 0a 0a 05 05 05 07 3a 14 00 00 00 00 00  .........:......
0000480: 04 1c 05 05 0f 0a 05 02 05 35 14 00 00 00 00 00  .........5......
0000490: 05 19 01 0a 14 01 0a 01 05 3a 14 00 00 00 00 00  .........:......
00004a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00004b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00004c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00004d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00004e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
;                                               Checksum
;                                                  "valid" bytes
00004f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 63 55 aa  .............cU.

;;; Warrior 1 data
;        Class |--Name---|    |--Exp-|       |Max|    **
;           Status         **          |HP |       **
0000500: 08 00 8a b1 a7 bc 00 32 72 06 67 02 67 02 00 00  .......2r.g.g...
;        Str   Int   Luck  Ex4Lv             |--Armor--|
;           Agi   Vit   **       |-Weapons-|
0000510: 17 18 1d 33 1e 00 7f 25 20 00 00 00 1f 28 20 00  ...3...% ....( .
;        Dmg   Absrb Resis Lv-1
;           Hit%  Evade MagDf ** ** ...
0000520: 40 62 20 48 00 62 1f 00 00 00 00 00 00 00 00 00  @b H.b..........
0000530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

;;; Warrior 2 data
0000540: 08 00 8d b5 a8 ba 00 32 72 06 6a 02 6a 02 00 00  .......2r.j.j...
0000550: 1a 1a 18 33 1b 00 7f 25 00 00 00 00 1f 28 00 00  ...3...%.....(..
0000560: 40 62 20 4a 00 62 1f 00 00 00 00 00 00 00 00 00  @b J.b..........
0000570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

;;; Warrior 3 data
0000580: 0a 00 8b b5 a4 a7 00 32 72 06 e4 01 e4 01 00 00  .......2r.......
0000590: 15 17 2c 1f 1b 00 7f 25 a4 1d 25 00 8f a8 a0 00  ..,....%..%.....
00005a0: 1c 33 21 43 ff 52 1f 00 00 00 00 00 00 00 00 00  .3!C.R..........
00005b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

;;; Warrior 4 data
00005c0: 0b 00 99 a8 b7 a8 00 32 72 06 4f 01 4f 01 00 00  .......2r.O.O...
00005d0: 0f 19 33 0e 1a 00 7f 25 1e 1f 21 a3 25 90 a0 a8  ..3....%..!.%...
00005e0: 1e 47 21 45 ff 52 1f 00 00 00 00 00 00 00 00 00  .G!E.R..........
00005f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

; Sprite visibility, events, chests
0000600: 01 05 04 04 07 05 07 04 04 05 05 07 04 05 07 05  ................
0000610: 04 05 05 05 04 05 04 05 05 04 04 04 04 04 04 05  ................
0000620: 05 05 05 05 05 05 05 05 05 05 05 05 05 05 01 01  ................
0000630: 01 01 05 05 05 05 01 01 01 05 05 01 01 05 05 05  ................
0000640: 05 05 05 05 05 05 05 05 05 05 01 01 01 01 01 01  ................
0000650: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01  ................
0000660: 01 01 01 01 01 01 01 01 01 01 01 05 05 05 05 05  ................
0000670: 01 05 05 05 05 05 05 05 05 01 05 05 05 05 05 05  ................
0000680: 05 05 05 05 04 05 05 05 05 05 05 05 05 05 05 05  ................
0000690: 05 01 01 01 01 05 05 05 05 01 01 01 01 01 01 01  ................
00006a0: 05 01 01 05 05 01 05 05 05 05 05 05 05 05 05 05  ................
00006b0: 05 05 05 05 05 05 05 05 05 05 05 01 01 01 01 01  ................
00006c0: 01 01 01 01 05 05 05 05 05 05 05 05 05 05 05 05  ................
00006d0: 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05  ................
00006e0: 05 05 05 01 05 05 05 05 05 05 05 05 05 05 01 01  ................
00006f0: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01  ................

;; Warrior 1 magic
; Spells (4 slots per level, only 3 are used)
0000700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
; 0-7=Charges  8-f=Max charges
0000720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
; unused?
0000730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

;; Warrior 2 magic
0000740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

;; Warrior 3 magic
0000780: 01 02 00 00 02 04 00 00 01 02 00 00 01 00 00 00  ................
0000790: 01 02 04 00 04 02 00 00 01 02 00 00 01 02 03 00  ................
00007a0: 09 08 08 07 07 06 05 04 09 08 08 07 07 06 05 04  ................
00007b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

;; Warrior 4 magic
00007c0: 05 08 00 00 05 00 00 00 05 07 00 00 08 06 00 00  ................
00007d0: 05 07 00 00 05 00 00 00 05 00 00 00 05 00 00 00  ................
00007e0: 09 08 08 07 07 06 05 04 09 08 08 07 07 06 05 04  ................
00007f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
